package com.xyc.manager.exception;

import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;

@ControllerAdvice
public class GlobalExceptionHandler {
    @ExceptionHandler(Exception.class)
    public String globalUnknowExceptionAdvie(){
        //TODO 记录日志
        return "exception";
    }
}
